home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-05-17 | 532 b | 18 lines |
- Rem As in the previous example,we go to a subroutine,but now we
- Rem show that this program only sends us to the subroutine if a certain
- Rem condition has been achieved.
- Rem In this case,we keep adding 1 to the "X" variable-If "X" is greater
- Rem than or equal to 100,the program is sent to the SUBBIT subroutine,
- Rem where a message is displayed,AMOS is made to wait for a second,
- Rem and then returns to the editor.
- X=0
- MAIN:
- X=X+1
- If X>=100 Then Gosub SUBBIT
- Print At(0,0);X
- Wait 1
- Gosub MAIN
- SUBBIT:
- Print "X=100"
- Wait 50
- Edit